<!DOCTYPE html>
<html>

	<head>

		<meta content="text/html; charset=UTF-8">
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
		<meta name="viewport" content="width=device-width">
		<title>店铺街</title>
		<meta name="keywords" content="" />
		<meta name="description" content="" />
		<link rel="stylesheet" type="text/css" href="__TMPL__Public/css/public.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/User/css/common.css" />
		<link rel="stylesheet" href="/themes/wnsc_moblie/newMobile/Shop/css/dropload.css" />
		<script type="text/javascript" src="/themes/wnsc_moblie/newMobile/User/js/area/jquery.min.js"></script>
		<script type="text/javascript" src="/themes/wnsc_moblie/Public/js/common.js"></script>
		<script src="/themes/wnsc_moblie/newMobile/Shop/css/dropload.js"></script>
		<link rel="stylesheet" type="text/css" href="/themes/wnsc_moblie/newMobile/Store/css/shopStreet.css" />
	</head>

	<body class="body-gray">
	<?php
					$agent = $_SERVER['HTTP_USER_AGENT'];
					if(strpos($agent,"Html5Plus") === false){
				?>
		<header style="z-index: 9;">
			<div class="tab_nav">
				<div class="header">
					<div class="header-left">
						<a class="sb-back" href="javascript:history.back(-1)" title="返回"></a>
					</div>
					<div class="header-middle">店铺街</div>
					<div class="header-right">
						<aside class="show-menu-btn">
							<div class="show-menu" id="show_more">
								<a href="javascript:;"></a>
							</div>
						</aside>
					</div>
				</div>
			</div>
		</header>
		<mtc_include file="Public:right_nav" />
	<?php
					}
				?>
		<!-- 店铺列表 -->
		<div class="main" id="table_list">
			<ul class="shop-list" >
				

			</ul>
		</div>
	<script type="text/javascript">
			$(function(){
				var last = 0;
				var amount = 6;
				var html='';
				var url = "{:U('store/ajax_getlist_store')}";
				
				$('#table_list').dropload({
					scrollArea: window,
					domDown: {
						domClass: 'dropload-down',
						domRefresh: '<div class="dropload-refresh">上拉加载更多</div>',
						domLoad: '<div class="dropload-load"><span class="loading"></span>加载中...</div>',
						domNoData: '<div class="dropload-noData">已无数据</div>'
					},
					loadDownFn: function(me) {
						$.ajax({
							type: 'GET',
							url: url,
							data: {
								last: last,
								amount: amount
							},
							dataType: 'json',
							success: function(data) {
								if(data == null) {
									me.noData();
									me.resetload();
								} else {
									$('.no-data-div').hide();
									$.each(data,function(key,value) {
										$('.shop-list').append(value)
										html+=value
									});
									last = last + amount;
								}
								// 代码执行后必须重置
								me.resetload();
							}
						});
					}
				});

			})
		</script>
		<mtc_include file="Public:footer" />
	</body>

</html>